package com.nuedu.corejava.ch3.homework;

import java.util.Scanner;


public class SelectHomeWork6 {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		System.out.println("请输入一个数");
		int j=scanner.nextInt();
		int sum=1;
		for(int i=1;i<=j;i++){
			sum*=i;
		}
		System.out.println(sum);

	}

}
